package game.soccerField.lines;

import game.ball.SoccerBall;

public class RightSouthGoalLine extends LimitLine {

	public RightSouthGoalLine(double x, double y, int width, int height) {
		super(x, y, width, height);
	}

	@Override
	public void execute() {
		SoccerBall ball = this.getScene().getSoccerBall();
		if(!ball.getLastTouched().isUserMate())
			this.getScene().announceRightSouthCornerKick();
		else
			this.getScene().announceRightGoalKick();
	}

}
